package com.tydic.common.web.domain.bo;

import com.tydic.common.core.validate.AddGroup;
import com.tydic.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class IdBo implements Serializable {
    @Serial
    private static final long serialVersionUID = 582317517883682338L;

    /**
     * 数据的唯一标识
     */
    @NotBlank(message = "id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String id;
}
